import request from '@/utils/request'

// 查询车大夫问答列表
export function listDoctorquestion(query) {
  return request({
    url: '/wechat/doctorquestion/list',
    method: 'get',
    params: query
  })
}

// 查询车大夫问答详细
export function getDoctorquestion(questionId) {
  return request({
    url: '/wechat/doctorquestion/' + questionId,
    method: 'get'
  })
}

// 新增车大夫问答
export function addDoctorquestion(data) {
  return request({
    url: '/wechat/doctorquestion',
    method: 'post',
    data: data
  })
}

// 修改车大夫问答
export function updateDoctorquestion(data) {
  return request({
    url: '/wechat/doctorquestion',
    method: 'put',
    data: data
  })
}

// 删除车大夫问答
export function delDoctorquestion(questionId) {
  return request({
    url: '/wechat/doctorquestion/' + questionId,
    method: 'delete'
  })
}

// 导出车大夫问答
export function exportDoctorquestion(query) {
  return request({
    url: '/wechat/doctorquestion/export',
    method: 'get',
    params: query
  })
}